<script>
async function fn(n) {
  console.log(n)
  await 1
  console.log(n+1)
  await 1
  console.log(n+2)
  //
  /*
  Promise.resolve(1).then(() => {
    console.log(n+1)
    Promise.resolve(1).then(()=> {
      console.log(n+2)
    })
  })
  */
  // ---

}
console.log(1)
fn(100)
console.log(2)


</script>